<template>
  <div class="home">
    <div class="header">
      <div class="logo"></div>
      <div class="titleMain">
        <h1>工艺参数</h1>
      </div>
    </div>
    <div class="main-container">
      <el-tabs v-model="activeTab" class="card-tabs">
        <el-tab-pane label="总览" name="overview">
          <overview v-if="activeTab == 'overview'" />
        </el-tab-pane>
        <el-tab-pane label="符合率" name="rate">
          <rate v-if="activeTab == 'rate'" />
        </el-tab-pane>
        <el-tab-pane label="详细" name="detail">
          <detail v-if="activeTab == 'detail'" />
        </el-tab-pane>
        <el-tab-pane label="人工录入" name="input">
          <Input v-if="activeTab == 'input'" />
        </el-tab-pane>
      </el-tabs>
    </div>
  </div>
</template>
<script setup lang="ts">
  import Input from './processParamInput.vue';
  import detail from './detail.vue';
  import overview from './overview.vue';
  import rate from './rate.vue';
  import { ref, reactive, onMounted } from 'vue';

  const activeTab = ref('overview');
</script>
<style scoped lang="less">
  .main-container {
    margin-top: -8vh;
    margin-left: 0.5vw;
  }

  .card-tabs {
    :deep(.el-tabs) {
      &__item:not(.is-active) {
        color: #fff !important;
      }
    }
  }
</style>
